<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        .box {
            width: 300px;
            height: 300px;
            background-color: pink;
        }
        .box1 {
            display: block;
            width: 100px;
            height: 100px;
            background-color: red;
        }
        .box2 {
            /*display: inline-block;*/
            float: left;
            width: 100px;
            height: 100px;
            background-color: yellow;

        }
    </style>
</head>
<body>
    <div class="box">
        <i class="box1"></i>
        <i class="box2"></i>

    </div>
</body>
</html>